package com.kimwu.design.abstracts.factory.factory.impl;

import com.kimwu.design.abstracts.factory.factory.Factory;
import com.kimwu.design.abstracts.factory.product.Fruit;
import com.kimwu.design.abstracts.factory.product.Vegetable;
import com.kimwu.design.abstracts.factory.product.impl.SouthFruit;
import com.kimwu.design.abstracts.factory.product.impl.SouthVegetable;

/**
 * 具体类：南方产品工厂
 */
public class SouthProductFactory implements Factory {
    @Override
    public Fruit createFruit() {
        return new SouthFruit();
    }

    @Override
    public Vegetable createVegetable() {
        return new SouthVegetable();
    }
}